package com.juyu.miliao.api.util;

import com.juyu.miliao.api.domain.dto.IntegralLevelAndTitleDTO;
import com.juyu.miliao.api.domain.vo.HostUserLevelVo;

/**
 *
 * @Auther: 卜加超
 * @Date: 2019/7/19 15:37
 * @Description:
 */
public class HostUserLevelUtil {
    /**
     * 展示主播等级信息
     * @param userIntegralLevel
     * @return
     */
    public static HostUserLevelVo getHostUserLevel(IntegralLevelAndTitleDTO userIntegralLevel){
        HostUserLevelVo hostUserLevelVo = new HostUserLevelVo();
        hostUserLevelVo.setHostUserGrade(userIntegralLevel.getIntegralGrade());
        hostUserLevelVo.setNextLevelValue(userIntegralLevel.getNextLevelValue());
        hostUserLevelVo.setHostUserGradePic(userIntegralLevel.getIntegralGradePic());
        hostUserLevelVo.setHostUserTitleId(userIntegralLevel.getIntegralTitleId());
        hostUserLevelVo.setGoldCoinsPerMinute(userIntegralLevel.getGoldCoinsPerMinute());
        hostUserLevelVo.setDiamondConversionRate(String.valueOf(userIntegralLevel.getDiamondConversionRate()));
        hostUserLevelVo.setGreetNum(userIntegralLevel.getGreetNum());
        hostUserLevelVo.setIsTeaseUserRobot(userIntegralLevel.getIsTeaseUserRobot());
        hostUserLevelVo.setIsTrenchFriendModule(userIntegralLevel.getIsTrenchFriendModule());
        hostUserLevelVo.setIsUserRechargeReminder(userIntegralLevel.getIsUserRechargeReminder());
        hostUserLevelVo.setIsModifyVoiceIntroduction(userIntegralLevel.getIsModifyVoiceIntroduction());
        hostUserLevelVo.setIsModifyLocation(userIntegralLevel.getIsModifyLocation());
        hostUserLevelVo.setHostUserTitleName(userIntegralLevel.getIntegralTitleName());
        hostUserLevelVo.setHostUserTitlePic(userIntegralLevel.getIntegralTitlePic());
        return hostUserLevelVo;
    }
}
